package cn.datawin.bms.provider.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 供应商通道
 *
 * @author datawin-sms
 * @date 2025-08-22 11:24:59
 */
@Data
@TableName("prov_provider_channel")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "供应商通道")
public class ProvProviderChannelEntity extends Model<ProvProviderChannelEntity> {


	/**
	 * 通道id
	 */
	@TableId(type = IdType.AUTO)
	@Schema(description = "通道id")
	private Long id;

	/**
	 * 供应商id
	 */
	@Schema(description = "供应商id")
	private Long providerId;

	/**
	 * 通道名称
	 */
	@Schema(description = "通道名称")
	private String channelName;

	/**
	 * 归属省
	 */
	@Schema(description = "归属省")
	private String provinceCode;

	/**
	 * 通道说明
	 */
	@Schema(description = "通道说明")
	private String remark;

	/**
	 * 运营商
	 */
	@Schema(description = "运营商")
	private String ispCode;

	/**
	 * 单价
	 */
	@Schema(description = "单价")
	private BigDecimal price;

	/**
	 * 状态
	 */
	@Schema(description = "状态")
	private Integer status;

	/**
	 * 敏感词
	 */
	@Schema(description = "敏感词")
	private String sensitiveWord;

	/**
	 * 屏蔽省
	 */
	@Schema(description = "屏蔽省")
	private String hideProvinceName;

	/**
	 * 扩展码长度限制
	 */
	@Schema(description = "扩展码长度限制")
	private Integer extCodeLenLimit;


	/**
	 * 创建者
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建者")
	private String createBy;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 更新者
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "更新者")
	private String updateBy;

	/**
	 * 更新时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@Schema(description = "更新时间")
	private LocalDateTime updateTime;

	/**
	 * 删除标识(0=正常,2=删除)
	 */
	@TableLogic
	@TableField(fill = FieldFill.INSERT)
	@Schema(description="删除标识(0=正常,2=删除)")
	private String delFlag;
}
